package com.cloud.school.bus.teacherhelper.protocol.privateletter;

import java.util.HashMap;

import android.content.Context;
import android.text.TextUtils;

import com.cloud.school.bus.teacherhelper.protocol.ProtocolDef;
import com.cloud.school.bus.teacherhelper.protocol.baserequest.BaseGetHttpRequest;
import com.cloud.school.bus.teacherhelper.protocol.baserequest.BasePostHttpRequest;

/**
 * 获取私信列表
 * 
 * @author lenovo
 * 
 */
public class GetPrivateLetterListRequest extends BaseGetHttpRequest {

	/**
	 * 获得私信 ,获得私信列表。参数都为0时，获取最新私信
	 * 
	 * @param context
	 * @param starttime
	 *            starttime为当前私信条数第一条私信时间即当前私信的最小时间
	 * @param endtime
	 *            endtime为0 返回上面多条数据
	 */
	public GetPrivateLetterListRequest(Context context, String starttime,
			String endtime) {
		super(context);

		HashMap<String, String> requestMap = new HashMap<String, String>();
		if (!TextUtils.isEmpty(starttime)) {
			requestMap.put("starttime", starttime);
		}
		if (!TextUtils.isEmpty(endtime)) {
			requestMap.put("endtime", endtime);
		}
		setRequestParam(ProtocolDef.METHOD_Letter, requestMap);

	}

}
